<?php 
$params = array();
if (isset($_GET['year'])&&isset($_GET['month'])) {
	$params = array(
		'year'=>$_GET['year'],
		'month'=>$_GET['month'],
		); 
}

$params['url'] = 'demo.php';
require_once'../php/calendar.class.php';

 ?>
 <!DOCTYPE html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8" http-equiv="Content-Type" >
 	<title>calendar</title>
 	 <link rel="stylesheet" href="../css/common.css">
 	 <link rel="stylesheet" href="../css/calendar.css">
 	<style type="text/css">

 	</style>
 </head>
 <body>
 	<header></header>
  	<div class="content">
 		<div> <!-- style='align:center' -->
 			<?php $cal = new Calendar($params);
 				$cal->display();
 			 ?>
 		</div>
 	</div>
 	<script src="../js/jquery-3.1.1.js"></script>
	<script src="../js/common.js"></script>
	<script src="../js/calendar.js"></script>
 </body>
 </html>